﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "GcmpModelInterface.h"
#include "IObject.h"
namespace gcmp
{
    /// \brief 事件接口基类
    ///
    /// 事件管理Handler，但不会负责管理Handler的生命周期
    class GCMP_MODEL_INTERFACE_EXPORT IEvent : public IObject
    {
        DEFINE_CAST_DERIVED(gcmp::IEvent, gcmp::IObject);
    public:
        /// \brief 得到事件名称
        /// 
        ///  事件名称框架没有限制必须唯一
        /// \return 事件名称 
        virtual std::wstring GetName() const = 0;
    };
}


